/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="MEDICOUNIDADE")
public class MedicoUnidadeProteu implements Serializable{

    @Id
    @Column(name="MED_ST_CODIGO")
    private String medStCodigo;
    @Id
    @Column(name="UNI_IN_CODIGO")
    private Integer uniInCodigo;
    @Id
    @Column(name="ESC_ST_CODIGO")
    private String escStCodigo;

    @Column(name="MEU_SYS_DATA")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date meuSysData;
    @Column(name="USU_IN_CODIGO")
    private String usuInCodigo;

    public String getEscStCodigo() {
        return escStCodigo;
    }

    public void setEscStCodigo(String escStCodigo) {
        this.escStCodigo = escStCodigo;
    }

    public String getMedStCodigo() {
        return medStCodigo;
    }

    public void setMedStCodigo(String medStCodigo) {
        this.medStCodigo = medStCodigo;
    }

    public Date getMeuSysData() {
        return meuSysData;
    }

    public void setMeuSysData(Date meuSysData) {
        this.meuSysData = meuSysData;
    }

    public Integer getUniInCodigo() {
        return uniInCodigo;
    }

    public void setUniInCodigo(Integer uniInCodigo) {
        this.uniInCodigo = uniInCodigo;
    }

    public String getUsuInCodigo() {
        return usuInCodigo;
    }

    public void setUsuInCodigo(String usuInCodigo) {
        this.usuInCodigo = usuInCodigo;
    }
    

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final MedicoUnidadeProteu other = (MedicoUnidadeProteu) obj;
        if ((this.medStCodigo == null) ? (other.medStCodigo != null) : !this.medStCodigo.equals(other.medStCodigo)) {
            return false;
        }
        if ((this.uniInCodigo == null) ? (other.uniInCodigo != null) : !this.uniInCodigo.equals(other.uniInCodigo)) {
            return false;
        }
        if ((this.escStCodigo == null) ? (other.escStCodigo != null) : !this.escStCodigo.equals(other.escStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 97 * hash + (this.medStCodigo != null ? this.medStCodigo.hashCode() : 0);
        hash = 97 * hash + (this.uniInCodigo != null ? this.uniInCodigo.hashCode() : 0);
        hash = 97 * hash + (this.escStCodigo != null ? this.escStCodigo.hashCode() : 0);
        return hash;
    }

    

}
